<template>
  <div class="content">
    <h3 style="text-align: center">发布</h3>
    <el-menu>
      <el-menu-item index="1" @click="ShowItem(1)">
        <i class="el-icon-user"></i>
        <span slot="title">发布文献</span>
      </el-menu-item>
      <el-menu-item index="2" @click="ShowItem(2)">
        <i class="el-icon-star-on"></i>
        <span slot="title">发布科研项目</span>
      </el-menu-item>
       <el-menu-item index="3" @click="ShowItem(3)">
        <i class="el-icon-s-cooperation"></i>
        <span slot="title">查看已发布内容</span>
      </el-menu-item>
       </el-menu-item>
        <el-menu-item index="4" @click="ShowItem(4)">
        <i class="el-icon-s-custom"></i>
        <span slot="title">返回学者主页</span>
      </el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "tolaunchchoosepad",
  data(){
    return{
      showitem: '',
    }
  },
  methods:{
    ShowItem(v){
      this.showitem = v.toString();
      this.$emit("filepadchoice", this.showitem);
    }
  },

}
</script>

<style scoped>
.content{
  width: 20em;
}
.item {
  margin-top: -1em;
  margin-right: 2em;
}
</style>